package hash

import "github.com/emmansun/gmsm/sm3"

// Sm3 国密SM3加密
func Sm3(data, key string, opts ...string) ([]byte, error) {
	hasher := sm3.New()
	hasher.Write([]byte(data))
	hashValue := hasher.Sum(nil)
	return hashValue, nil
}
